/*
 * Validaciones.java
 *
 * Created on 27 de febrero de 2007, 08:52 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */



package everest3.utils;

/**
 *
 * @author XP
 */
public class Validaciones {
    public Validaciones() {}

    public boolean isDigit(String cadena) {
        boolean valor = false;

        for (int i = 0; i < cadena.length(); i++) {
            if (!Character.isDigit(cadena.charAt(i))) {
                return false;
            }
        }

        return true;
    }

    public boolean isLetter(String cadena) {
        for (int i = 0; i < cadena.length(); i++) {
            if (!Character.isLetter(cadena.charAt(i))) {
                return false;
            }
        }

        return true;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
